define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'mall.withdrawal/index'
    };

    var Controller = {
        index: function () {
            ea.table.render({
                init: init,
                toolbar: ['refresh',
                    [],
                ],
                cols: [[
                    {type: "checkbox"},
                    {field: 'id', width: 80, title: 'ID'},
                    {field: 'nickName', minWidth: 80, title: '用户昵称'},
                    {field: 'money', minWidth: 100, title: '提现金额'},
                    {field: 'status', minWidth: 80,title: '状态', selectList: {0: '提现中', 1: '提现成功'}},
                    {field: 'create_time', minWidth: 80, title: '申请时间', search: 'range'}
                ]],
            });

            ea.listen();
        }
    };
    return Controller;
});